#pragma once

#include "object/object.h"
#include "object/updatefields.h"

namespace battle::object
{

    class Item : public battle::object::Object
    {
    public:
        ObjectGuid GetOwnerGuid() const { return ObjectGuid(); }
        mt::Item const* GetProto() const { return nullptr; }
        bool IsBroken() const { return GetUint32Value(ITEM_FIELD_MAXDURABILITY) > 0 && GetUint32Value(ITEM_FIELD_DURABILITY) == 0; }
    };

}
